#pragma once

#include <string>
#include <vector>
#include <map>
#include <algorithm>

#include<stdio.h>

#include "tinyxml/tinyxml.h"
#include "Ogre.h"
#include "OgreVector3.h"

using namespace Ogre;

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;


inline Ogre::Vector3 XML_LoadVector3(TiXmlElement* pElement)
{
	Ogre::Vector3 vec3(0,0,0);
	if(pElement)
	{
		pElement->QueryIntAttribute("x", (int*)&vec3.x);
		pElement->QueryIntAttribute("y", (int*)&vec3.y);
		pElement->QueryIntAttribute("z", (int*)&vec3.z);
	}
	return vec3;
}
